package com.ruoyi.attachedData.service;

import com.ruoyi.attachedData.domain.AttachedData;

import java.util.List;

/**
 * 附详情Service接口
 *
 * @author ruoyi
 * @date 2025-05-09
 */
public interface IAttachedDataService
{
    /**
     * 查询附详情
     *
     * @param id 附详情主键
     * @return 附详情
     */
    public AttachedData selectAttachedDataById(Long id);

    /**
     * 查询附详情列表
     *
     * @param attachedData 附详情
     * @return 附详情集合
     */
    public List<AttachedData> selectAttachedDataList(AttachedData attachedData);

    public List<AttachedData> selectAttachedDataListCount(AttachedData attachedData);

    /**
     * 新增附详情
     *
     * @param attachedData 附详情
     * @return 结果
     */
    public int insertAttachedData(AttachedData attachedData);

    /**
     * 修改附详情
     *
     * @param attachedData 附详情
     * @return 结果
     */
    public int updateAttachedData(AttachedData attachedData);

    public int updateAttachedDataForStatus(Long commissionId);

    /**
     * 批量删除附详情
     *
     * @param ids 需要删除的附详情主键集合
     * @return 结果
     */
    public int deleteAttachedDataByIds(Long[] ids);

    /**
     * 批量逻辑删除附详情
     *
     * @param ids 需要删除的附详情主键集合
     * @return 结果
     */
    public int logicDeleteAttachedData(Long[] ids,String delType,Long delUser);
    /**
     * 删除附详情信息
     *
     * @param id 附详情主键
     * @return 结果
     */
    public int deleteAttachedDataById(Long id);


    /**
     * 导入数据
     *
     * @param attachedDataList 数据列表
     * @return 结果
     */
    public String importAttachedData(List<AttachedData> attachedDataList,Long attachedId,Long commissionId,Long engineeringId,Long type);
}
